#1.导包
import os
import sys
sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), '..')))
from config import DIR_PATH
from htmltestreport import HTMLTestReport
import unittest
suite = unittest.defaultTestLoader.discover("./scripts")

#执行套件

report_path = DIR_PATH + os.sep + "report" + os.sep + 'p2p.html'
HTMLTestReport(report_path, title="p2p接口自动化测试报告").run(suite)

 